/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package posdemo;

/**
 *
 * @author sd
 */
public class POS {
    public static boolean slide(float price,Card card)
    {
        if(card.getAmount()<card.shouldPay(price))
        {
            return false;
        }
        else
        {
         card.setAmount( card.getAmount()-card.shouldPay(price));  
         return true;
        }
    }
}
